/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.iboss.service.sc;

import net.dgg.dggcloud.core.minidao.hibernate.dao.IGenericBaseCommonDao;
import net.dgg.dggcloud.service.common.base.service.BaseService;
import net.dgg.dggcloud.service.entity.org.OrganizationEntity;
import net.dgg.dggcloud.service.entity.user.User;
import net.dgg.dggcloud.service.iboss.constant.*;
import net.dgg.dggcloud.service.iboss.dao.sc.AllProOrderDao;
import net.dgg.dggcloud.service.iboss.dao.sc.ChannelParagraphDao;
import net.dgg.dggcloud.service.iboss.entity.ScProFlowNode;
import net.dgg.dggcloud.service.iboss.entity.ScProFlowOperating;
import net.dgg.dggcloud.service.iboss.entity.ScProNodeOperating;
import net.dgg.dggcloud.service.iboss.entity.ScProOrder;
import net.dgg.dggcloud.service.jrcrm.entity.pro.Product;
import net.dgg.dggcloud.service.jrcrm.service.cms.BillNumberRuleService;
import net.dgg.dggcloud.service.jrcrm.service.cms.CustomerRecordService;
import net.dgg.dggcloud.service.jrcrm.service.orf.api.OrderApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @class_name: ChannelParagraphService
 * @package: net.dgg.dggcloud.service.iboss.service.sc
 * @describe: TODO 渠道认款数据-service层
 * @creat_user: 代杨
 * @creat_date: 2017/11/24
 * @creat_time: 10:01
 **/
@Service
public class ChannelParagraphService extends BaseService {
    @Resource
    private ChannelParagraphDao channelParagraphDao;
    @Resource(name = "miniDaoHiberCommonDao")
    protected IGenericBaseCommonDao repository;

    /**
     * 渠道认款数据List<Map></br>
     *
     * @param map</br>
     * @return 集合</br>
     */
    public List<Map> listChannelParagraphByMap(Map map) {
        return channelParagraphDao.listChannelParagraphByMap(map);
    }

    /**
     * @Title:
     * @Description: TODO 渠道认款数据count
     * @param:
     * @return:
     * @throw:
     * @creat_user: 代杨
     * @creat_date: 2017/12/5
     **/
    public Integer countChannelParagraphByMap(Map map) {
        return channelParagraphDao.countChannelParagraphByMap(map);
    }

}
